from utils.router import router
from . import views

router.register('categories', views.CourseCategoryViewSet, 'categories')
router.register('free', views.CourseViewSet, 'free')  # 课程
router.register('chapters', views.ChapterViewSet, 'chapter')  # 章节
# 章节已经可以连带着序列化出课时，所以不用单独写序列化课时的视图类。

router.register('search', views.SearchCourseViewSet, 'search')
urlpatterns = [

]

urlpatterns += router.urls
